﻿@using CashFlow.Db.Entity;
@{
    ViewBag.Title = "MyCustomers";
    Layout = "~/Views/Shared/_Layout3.cshtml";
    var ls = ViewBag.MyCustomers as IList<UserInfoEntity>;
}
<style type="text/css">
    .title {
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        font-weight: 800;
        text-align: center;
    }

    .list {
        width: 85%;
        margin: 0px auto;
        padding-bottom: 20px;
        margin-top: 10px;
    }

    .list-item {
        background-color: white;
        border-radius: 10px;
        font-size: 16px;
        margin-top: 15px;
    }

        .list-item:first-child {
            margin-top: 0px;
        }

    .list-item-row {
        height: 40px;
        line-height: 40px;
    }

        .list-item-row span:first-child {
            color: #999;
            width: 100px;
            display: inline-block;
            text-align: right;
        }

        .list-item-row span:last-child {
            margin-left: 10px;
        }
</style>
<div class="title">客户列表</div>
<div class="list">
    @{
        foreach (UserInfoEntity item in ls)
        {
            <div class="list-item">
                <div class="list-item-row"><span>姓名:</span><span>@item.Name</span></div>
                <div class="list-item-row"><span>手机号码:</span><span>@item.Phone</span></div>
                <div class="list-item-row"><span>邀请码:</span><span>@item.InvitationCode</span></div>
                <div class="list-item-row"><span>注册时间:</span><span>@item.CreateTime.ToString("yyyy-MM-dd")</span></div>
            </div>
        }
    }
</div>
